package model

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Nid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type PerSon struct {
	gorm.Model
	PerCode  string `gorm:"type:varchar(50)"`
	PerName  string `gorm:"type:varchar(50)"`
	PerPhone string `gorm:"type:varchar(50)"`
}
type PerSonOrder struct {
	gorm.Model
	OrderCode string `gorm:"type:varchar(50)"`
	OrderName string `gorm:"type:varchar(50)"`
	OrderFrom string `gorm:"type:varchar(50)"`
	OrderTo   string `gorm:"type:varchar(50)"`
	Pid       int    `gorm:"type:int"`
}
type PerSonOrderList struct {
	PerCode   string
	PerName   string
	PerPhone  string
	OrderCode string
	OrderName string
	OrderFrom string
	OrderTo   string
}
